/**
 * 
 */
package com.jie.eclipse.pan.swtitem.table.cellmodifier;

import java.util.List;

import com.jie.eclipse.pan.swtitem.table.PTableViewer;

/**
 * @author yanjie
 *
 */
public class SelectColumnsTableCellModifier extends BaseCellModifier {
	private List<String> list = null;
	/**
	 * @param tv
	 */
	public SelectColumnsTableCellModifier(PTableViewer tv,List<String> list) {
		super(tv);
		this.list = list;
	}

	@Override
	public boolean canModify(Object element, String property) {
		if(list.contains(property)){
			return true;
		}
		return false;
	}
}
